package com.yqg.protection.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * product_tech_train 实体类
 *
 * @author zxf
 * @since 2024-10-15
 */
@Getter
@Setter
@TableName("product_tech_train")
@ApiModel(value = "ProductTechTrain对象", description = "")
public class ProductTechTrain implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", index = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "产品和技术培训名称", index = 1)
    @ApiModelProperty("产品和技术培训名称")
    private String trainName;

    @ExcelProperty(value = "发布人姓名", index = 2)
    @ApiModelProperty("发布人姓名")
    private String enterName;

    @ExcelProperty(value = "发布日期", index = 3, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("发布日期")
    private LocalDateTime enterDate;

    @ExcelProperty(value = "备注", index = 4)
    @ApiModelProperty("备注")
    private String description;

    @ExcelProperty(value = "文件名称", index = 5)
    @ApiModelProperty("文件名称")
    private String fileName;

    @ExcelProperty(value = "文件路径", index = 6)
    @ApiModelProperty("文件路径")
    private String fileUrl;

    @ExcelProperty(value = "状态", index = 7)
    @ApiModelProperty("状态")
    private String state;

    @ExcelIgnore
    private Integer isDelete;

}
